/* Logo 容器 */
.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  transition: all 0.3s ease;
}

/* Logo 图标容器 */
.logo-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Logo 图片 */
.logo-image {
  border-radius: 8px;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Logo 发光效果 */
.logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(66, 185, 131, 0.3) 0%, transparent 70%);
  border-radius: 8px;
  opacity: 0;
  animation: logoGlow 3s ease-in-out infinite;
  pointer-events: none;
}

/* Logo 文字容器 */
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-weight: 600;
  color: var(--text-color, #333);
  transition: color 0.3s ease;
}

/* Logo 标题 */
.logo-title {
  color: var(--primary-color, #42b983);
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

/* Logo 副标题 */
.logo-subtitle {
  font-size: 0.85em;
  font-weight: 500;
  opacity: 0.8;
  color: var(--text-color, #666);
  transition: all 0.3s ease;
}

/* 动画效果 */
.logo-container.animated:hover .logo-image {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 8px rgba(66, 185, 131, 0.3));
}

.logo-container.animated:hover .logo-title {
  color: var(--primary-color, #42b983);
  transform: translateX(2px);
}

.logo-container.animated:hover .logo-glow {
  opacity: 1;
  animation: logoGlowHover 0.6s ease-out;
}

/* 发光动画 */
@keyframes logoGlow {
  0%, 100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.3;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

@keyframes logoGlowHover {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  50% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* 主题适配 */
[data-theme="dark"] .logo-text {
  color: #fff;
}

[data-theme="dark"] .logo-subtitle {
  color: #ccc;
}

[data-theme="dark"] .logo-title {
  color: #66bb6a;
}

[data-theme="dark"] .logo-image {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

[data-theme="dark"] .logo-container.animated:hover .logo-image {
  filter: drop-shadow(0 4px 8px rgba(102, 187, 106, 0.4));
}

/* 响应式设计 */
@media (max-width: 768px) {
  .logo-container {
    gap: 8px;
  }
  
  .logo-text {
    font-size: 0.9em;
  }
  
  .logo-subtitle {
    font-size: 0.8em;
  }
}

@media (max-width: 480px) {
  .logo-container {
    gap: 6px;
  }
  
  .logo-text {
    font-size: 0.8em;
  }
  
  .logo-subtitle {
    display: none;
  }
}

/* 加载动画 */
.logo-container.loading .logo-image {
  animation: logoLoading 1.5s ease-in-out infinite;
}

@keyframes logoLoading {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(0.95);
  }
}

/* 脉冲效果 */
.logo-container.pulse .logo-glow {
  animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(1.15);
  }
}

/* 旋转效果 */
.logo-container.rotate .logo-image {
  animation: logoRotate 10s linear infinite;
}

@keyframes logoRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* 渐变文字效果 */
.logo-container.gradient .logo-title {
  background: linear-gradient(135deg, #42b983 0%, #66bb6a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 3D 效果 */
.logo-container.three-d .logo-image {
  transform: perspective(1000px) rotateY(0deg);
  transition: transform 0.3s ease;
}

.logo-container.three-d:hover .logo-image {
  transform: perspective(1000px) rotateY(10deg);
} 